package com.youlai.boot.factory.model.form;

import java.io.Serial;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.*;

/**
 * 报工单-分包关联表单对象
 *
 * @author youlaitech
 * @since 2025-10-13 13:37
 */
@Getter
@Setter
@Schema(description = "报工单-分包关联表单对象")
@JsonIgnoreProperties(ignoreUnknown = true)
public class WorkReportPackageForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    @NotNull(message = "主键ID不能为空")
    private Long id;

    @Schema(description = "包ID")
    @NotNull(message = "包ID不能为空")
    private Long cuttingPackageId;

    @Schema(description = "报工单ID")
    @NotNull(message = "报工单ID不能为空")
    private Long workReportId;

    @Schema(description = "裁床ID")
    @NotNull(message = "裁床ID不能为空")
    private Long cuttingBedId;

    @Schema(description = "创建人")
    @Size(max = 50, message = "创建人长度不能超过50个字符")
    private String createBy;

    @Schema(description = "创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "更新人")
    @Size(max = 50, message = "更新人长度不能超过50个字符")
    private String updateBy;

    @Schema(description = "更新时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @Schema(description = "工序id")
    private Long processId;
}
